package com.gitee.wsl.struct.grammar.node.expr.math

import com.gitee.wsl.struct.grammar.node.ASTNode
import com.gitee.wsl.struct.grammar.node.Node
import com.gitee.wsl.struct.grammar.node.NodeType

abstract class BinaryExpr(vararg children: ASTNode) : Node(children=children,type = NodeType.EXPR) {
    abstract val left: ASTNode
    abstract val right: ASTNode
}

val NodeType.Companion.EXPR: NodeType
    get() = NodeType("EXPR",isToken = true)